Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
3136f2b1
Commit
3136f2b1
authored
Sep 22, 2003
by
Alexander Viro
Committed by
Linus Torvalds
Sep 22, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] prepare for 32-bit dev_t: misc cleanups
parent
2d06a9e3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
4 deletions
+16
-4
arch/sparc64/solaris/fs.c
arch/sparc64/solaris/fs.c
+15
-3
fs/bfs/inode.c
fs/bfs/inode.c
+1
-1
No files found.
arch/sparc64/solaris/fs.c
View file @
3136f2b1
...
@@ -28,9 +28,21 @@
...
@@ -28,9 +28,21 @@
#include "conv.h"
#include "conv.h"
#define R4_DEV(DEV) ((DEV & 0xff) | ((DEV & 0xff00) << 10))
static
inline
u32
R4_DEV
(
dev_t
DEV
)
#define R4_MAJOR(DEV) (((DEV) >> 18) & 0x3fff)
{
#define R4_MINOR(DEV) ((DEV) & 0x3ffff)
return
MINOR
(
DEV
)
|
(
MAJOR
(
DEV
)
<<
18
);
}
static
inline
unsigned
R4_MAJOR
(
u32
DEV
)
{
return
(
DEV
>>
18
)
&
0x3fff
;
}
static
inline
unsigned
R4_MINOR
(
u32
DEV
)
{
return
DEV
&
0x3ffff
;
}
#define R3_VERSION 1
#define R3_VERSION 1
#define R4_VERSION 2
#define R4_VERSION 2
...
...
fs/bfs/inode.c
View file @
3136f2b1
...
@@ -200,7 +200,7 @@ static int bfs_statfs(struct super_block *s, struct kstatfs *buf)
...
@@ -200,7 +200,7 @@ static int bfs_statfs(struct super_block *s, struct kstatfs *buf)
buf
->
f_bfree
=
buf
->
f_bavail
=
info
->
si_freeb
;
buf
->
f_bfree
=
buf
->
f_bavail
=
info
->
si_freeb
;
buf
->
f_files
=
info
->
si_lasti
+
1
-
BFS_ROOT_INO
;
buf
->
f_files
=
info
->
si_lasti
+
1
-
BFS_ROOT_INO
;
buf
->
f_ffree
=
info
->
si_freei
;
buf
->
f_ffree
=
info
->
si_freei
;
buf
->
f_fsid
.
val
[
0
]
=
s
->
s_dev
;
buf
->
f_fsid
.
val
[
0
]
=
old_encode_dev
(
s
->
s_dev
)
;
buf
->
f_namelen
=
BFS_NAMELEN
;
buf
->
f_namelen
=
BFS_NAMELEN
;
return
0
;
return
0
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment