aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode.c
diff options
context:
space:
mode:
authorZhi Yong Wu <[email protected]>2013-12-18 00:22:39 +0000
committerBen Myers <[email protected]>2014-01-06 19:46:25 +0000
commit163467d3753e77e1d77da75727975cc3803a1dbc (patch)
treeae457354c02370c445d2b44628ec579bad1fb424 /fs/xfs/xfs_inode.c
parentxfs: align initial file allocations correctly (diff)
downloadkernel-163467d3753e77e1d77da75727975cc3803a1dbc.tar.gz
kernel-163467d3753e77e1d77da75727975cc3803a1dbc.zip
xfs: factor prid related codes into xfs_get_initial_prid()
It will be reused by the O_TMPFILE creation function. Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Zhi Yong Wu <[email protected]> Signed-off-by: Ben Myers <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r--fs/xfs/xfs_inode.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c
index 001aa893ed59..c79b875f0354 100644
--- a/fs/xfs/xfs_inode.c
+++ b/fs/xfs/xfs_inode.c
@@ -42,7 +42,6 @@
#include "xfs_bmap_util.h"
#include "xfs_error.h"
#include "xfs_quota.h"
-#include "xfs_dinode.h"
#include "xfs_filestream.h"
#include "xfs_cksum.h"
#include "xfs_trace.h"
@@ -1169,10 +1168,7 @@ xfs_create(
if (XFS_FORCED_SHUTDOWN(mp))
return XFS_ERROR(EIO);
- if (dp->i_d.di_flags & XFS_DIFLAG_PROJINHERIT)
- prid = xfs_get_projid(dp);
- else
- prid = XFS_PROJID_DEFAULT;
+ prid = xfs_get_initial_prid(dp);
/*
* Make sure that we have allocated dquot(s) on disk.