mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
[PATCH] reduce boilerplate in fsid handling
Get rid of boilerplate in most of ->statfs() instances... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -45,4 +45,9 @@ struct kstatfs {
|
||||
struct dentry;
|
||||
extern int vfs_get_fsid(struct dentry *dentry, __kernel_fsid_t *fsid);
|
||||
|
||||
static inline __kernel_fsid_t u64_to_fsid(u64 v)
|
||||
{
|
||||
return (__kernel_fsid_t){.val = {(u32)v, (u32)(v>>32)}};
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user