diff options
author | Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> | 2013-12-17 19:22:39 -0500 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2014-01-06 14:46:25 -0500 |
commit | 163467d3753e77e1d77da75727975cc3803a1dbc (patch) | |
tree | ae457354c02370c445d2b44628ec579bad1fb424 /fs/xfs/xfs_symlink.c | |
parent | f9b395a8ef8f34d19cae2cde361e19c96e097fad (diff) |
xfs: factor prid related codes into xfs_get_initial_prid()
It will be reused by the O_TMPFILE creation function.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_symlink.c')
-rw-r--r-- | fs/xfs/xfs_symlink.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/xfs/xfs_symlink.c b/fs/xfs/xfs_symlink.c index 14e58f2c96bd..13140c7244f5 100644 --- a/fs/xfs/xfs_symlink.c +++ b/fs/xfs/xfs_symlink.c | |||
@@ -208,10 +208,7 @@ xfs_symlink( | |||
208 | return XFS_ERROR(ENAMETOOLONG); | 208 | return XFS_ERROR(ENAMETOOLONG); |
209 | 209 | ||
210 | udqp = gdqp = NULL; | 210 | udqp = gdqp = NULL; |
211 | if (dp->i_d.di_flags & XFS_DIFLAG_PROJINHERIT) | 211 | prid = xfs_get_initial_prid(dp); |
212 | prid = xfs_get_projid(dp); | ||
213 | else | ||
214 | prid = XFS_PROJID_DEFAULT; | ||
215 | 212 | ||
216 | /* | 213 | /* |
217 | * Make sure that we have allocated dquot(s) on disk. | 214 | * Make sure that we have allocated dquot(s) on disk. |