diff options
Diffstat (limited to 'fs/gfs2/inode.c')
-rw-r--r-- | fs/gfs2/inode.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c index eb7724b8578a..288c15f385bd 100644 --- a/fs/gfs2/inode.c +++ b/fs/gfs2/inode.c | |||
@@ -1959,9 +1959,10 @@ out: | |||
1959 | 1959 | ||
1960 | /** | 1960 | /** |
1961 | * gfs2_getattr - Read out an inode's attributes | 1961 | * gfs2_getattr - Read out an inode's attributes |
1962 | * @mnt: The vfsmount the inode is being accessed from | 1962 | * @path: Object to query |
1963 | * @dentry: The dentry to stat | ||
1964 | * @stat: The inode's stats | 1963 | * @stat: The inode's stats |
1964 | * @request_mask: Mask of STATX_xxx flags indicating the caller's interests | ||
1965 | * @flags: AT_STATX_xxx setting | ||
1965 | * | 1966 | * |
1966 | * This may be called from the VFS directly, or from within GFS2 with the | 1967 | * This may be called from the VFS directly, or from within GFS2 with the |
1967 | * inode locked, so we look to see if the glock is already locked and only | 1968 | * inode locked, so we look to see if the glock is already locked and only |
@@ -1972,10 +1973,10 @@ out: | |||
1972 | * Returns: errno | 1973 | * Returns: errno |
1973 | */ | 1974 | */ |
1974 | 1975 | ||
1975 | static int gfs2_getattr(struct vfsmount *mnt, struct dentry *dentry, | 1976 | static int gfs2_getattr(const struct path *path, struct kstat *stat, |
1976 | struct kstat *stat) | 1977 | u32 request_mask, unsigned int flags) |
1977 | { | 1978 | { |
1978 | struct inode *inode = d_inode(dentry); | 1979 | struct inode *inode = d_inode(path->dentry); |
1979 | struct gfs2_inode *ip = GFS2_I(inode); | 1980 | struct gfs2_inode *ip = GFS2_I(inode); |
1980 | struct gfs2_holder gh; | 1981 | struct gfs2_holder gh; |
1981 | int error; | 1982 | int error; |