diff options
author | David S. Miller <davem@davemloft.net> | 2019-09-15 08:17:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-09-15 08:17:27 -0400 |
commit | aa2eaa8c272a3211dec07ce9c6c863a7e355c10e (patch) | |
tree | 8454a23d36b2ff36133c276ee0ba80eabc00850e /fs/nfs/inode.c | |
parent | a3d3c74da49c65fc63a937fa559186b0e16adca3 (diff) | |
parent | 1609d7604b847a9820e63393d1a3b6cac7286d40 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Minor overlapping changes in the btusb and ixgbe drivers.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index c764cfe456e5..2a03bfeec10a 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
@@ -1403,11 +1403,12 @@ static int nfs_check_inode_attributes(struct inode *inode, struct nfs_fattr *fat | |||
1403 | if (NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) | 1403 | if (NFS_PROTO(inode)->have_delegation(inode, FMODE_READ)) |
1404 | return 0; | 1404 | return 0; |
1405 | 1405 | ||
1406 | /* No fileid? Just exit */ | 1406 | if (!(fattr->valid & NFS_ATTR_FATTR_FILEID)) { |
1407 | if (!(fattr->valid & NFS_ATTR_FATTR_FILEID)) | 1407 | /* Only a mounted-on-fileid? Just exit */ |
1408 | return 0; | 1408 | if (fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) |
1409 | return 0; | ||
1409 | /* Has the inode gone and changed behind our back? */ | 1410 | /* Has the inode gone and changed behind our back? */ |
1410 | if (nfsi->fileid != fattr->fileid) { | 1411 | } else if (nfsi->fileid != fattr->fileid) { |
1411 | /* Is this perhaps the mounted-on fileid? */ | 1412 | /* Is this perhaps the mounted-on fileid? */ |
1412 | if ((fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) && | 1413 | if ((fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) && |
1413 | nfsi->fileid == fattr->mounted_on_fileid) | 1414 | nfsi->fileid == fattr->mounted_on_fileid) |
@@ -1807,11 +1808,12 @@ static int nfs_update_inode(struct inode *inode, struct nfs_fattr *fattr) | |||
1807 | nfs_display_fhandle_hash(NFS_FH(inode)), | 1808 | nfs_display_fhandle_hash(NFS_FH(inode)), |
1808 | atomic_read(&inode->i_count), fattr->valid); | 1809 | atomic_read(&inode->i_count), fattr->valid); |
1809 | 1810 | ||
1810 | /* No fileid? Just exit */ | 1811 | if (!(fattr->valid & NFS_ATTR_FATTR_FILEID)) { |
1811 | if (!(fattr->valid & NFS_ATTR_FATTR_FILEID)) | 1812 | /* Only a mounted-on-fileid? Just exit */ |
1812 | return 0; | 1813 | if (fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) |
1814 | return 0; | ||
1813 | /* Has the inode gone and changed behind our back? */ | 1815 | /* Has the inode gone and changed behind our back? */ |
1814 | if (nfsi->fileid != fattr->fileid) { | 1816 | } else if (nfsi->fileid != fattr->fileid) { |
1815 | /* Is this perhaps the mounted-on fileid? */ | 1817 | /* Is this perhaps the mounted-on fileid? */ |
1816 | if ((fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) && | 1818 | if ((fattr->valid & NFS_ATTR_FATTR_MOUNTED_ON_FILEID) && |
1817 | nfsi->fileid == fattr->mounted_on_fileid) | 1819 | nfsi->fileid == fattr->mounted_on_fileid) |