diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-12 17:00:20 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-05-12 17:00:20 -0400 |
commit | 1d1bb236bc2ffb3586d6cc73e58c0d8351758123 (patch) | |
tree | 0c9b3b9a923c833d328a1a27bb305745a62e4295 /fs/gfs2/file.c | |
parent | e77d0c63f00137add5d7966d9bd9fd5115ce0841 (diff) |
gfs2: switch to ->iterate_shared()
protected by glock and already used without locking the directory
by gfs2_get_name()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/gfs2/file.c')
-rw-r--r-- | fs/gfs2/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c index 208efc70ad49..a3e7358e3cd1 100644 --- a/fs/gfs2/file.c +++ b/fs/gfs2/file.c | |||
@@ -1119,7 +1119,7 @@ const struct file_operations gfs2_file_fops = { | |||
1119 | }; | 1119 | }; |
1120 | 1120 | ||
1121 | const struct file_operations gfs2_dir_fops = { | 1121 | const struct file_operations gfs2_dir_fops = { |
1122 | .iterate = gfs2_readdir, | 1122 | .iterate_shared = gfs2_readdir, |
1123 | .unlocked_ioctl = gfs2_ioctl, | 1123 | .unlocked_ioctl = gfs2_ioctl, |
1124 | .open = gfs2_open, | 1124 | .open = gfs2_open, |
1125 | .release = gfs2_release, | 1125 | .release = gfs2_release, |
@@ -1147,7 +1147,7 @@ const struct file_operations gfs2_file_fops_nolock = { | |||
1147 | }; | 1147 | }; |
1148 | 1148 | ||
1149 | const struct file_operations gfs2_dir_fops_nolock = { | 1149 | const struct file_operations gfs2_dir_fops_nolock = { |
1150 | .iterate = gfs2_readdir, | 1150 | .iterate_shared = gfs2_readdir, |
1151 | .unlocked_ioctl = gfs2_ioctl, | 1151 | .unlocked_ioctl = gfs2_ioctl, |
1152 | .open = gfs2_open, | 1152 | .open = gfs2_open, |
1153 | .release = gfs2_release, | 1153 | .release = gfs2_release, |