summaryrefslogtreecommitdiffstats
path: root/fs/exportfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/exportfs')
-rw-r--r--fs/exportfs/expfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/exportfs/expfs.c b/fs/exportfs/expfs.c
index a4b531be9168..f2d24bb8d745 100644
--- a/fs/exportfs/expfs.c
+++ b/fs/exportfs/expfs.c
@@ -299,7 +299,8 @@ static int get_name(const struct path *path, char *name, struct dentry *child)
299 * filesystem supports 64-bit inode numbers. So we need to 299 * filesystem supports 64-bit inode numbers. So we need to
300 * actually call ->getattr, not just read i_ino: 300 * actually call ->getattr, not just read i_ino:
301 */ 301 */
302 error = vfs_getattr_nosec(&child_path, &stat); 302 error = vfs_getattr_nosec(&child_path, &stat,
303 STATX_INO, AT_STATX_SYNC_AS_STAT);
303 if (error) 304 if (error)
304 return error; 305 return error;
305 buffer.ino = stat.ino; 306 buffer.ino = stat.ino;