summaryrefslogtreecommitdiffstats
path: root/fs/gfs2/ops_file.c
diff options
context:
space:
mode:
authorSteven Whitehouse2006-11-16 17:08:16 +0100
committerSteven Whitehouse2006-11-30 16:35:57 +0100
commitdcd2479959c79d44f5dd77e71672e70f1f8b1f06 (patch)
treea41926c69b0ea6aac9bc9970b59bcd04f5867866 /fs/gfs2/ops_file.c
parent[GFS2] Remove unused sysfs files (diff)
downloadkernel-qcow2-linux-dcd2479959c79d44f5dd77e71672e70f1f8b1f06.tar.gz
kernel-qcow2-linux-dcd2479959c79d44f5dd77e71672e70f1f8b1f06.tar.xz
kernel-qcow2-linux-dcd2479959c79d44f5dd77e71672e70f1f8b1f06.zip
[GFS2] Remove unused function from inode.c
The gfs2_glock_nq_m_atime function is unused in so far as its only ever called with num_gh = 1, and this falls through to the gfs2_glock_nq_atime function, so we might as well call that directly. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/ops_file.c')
-rw-r--r--fs/gfs2/ops_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/gfs2/ops_file.c b/fs/gfs2/ops_file.c
index eabf6c61a96a..c2be216eb928 100644
--- a/fs/gfs2/ops_file.c
+++ b/fs/gfs2/ops_file.c
@@ -253,7 +253,7 @@ static int gfs2_get_flags(struct file *filp, u32 __user *ptr)
u32 fsflags;
gfs2_holder_init(ip->i_gl, LM_ST_SHARED, GL_ATIME, &gh);
- error = gfs2_glock_nq_m_atime(1, &gh);
+ error = gfs2_glock_nq_atime(&gh);
if (error)
return error;