diff options
author | David S. Miller <davem@davemloft.net> | 2019-08-27 17:23:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-27 17:23:31 -0400 |
commit | 68aaf4459556b1f9370c259fd486aecad2257552 (patch) | |
tree | 99d92536a3263634969be6b70a96facea85a0df1 /fs/ceph/inode.c | |
parent | d00ee466a07eb9182ad3caf6140c7ebb527b4c64 (diff) | |
parent | 9e8312f5e160ade069e131d54ab8652cf0e86e1a (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net
Minor conflict in r8169, bug fix had two versions in net
and net-next, take the net-next hunks.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/ceph/inode.c')
-rw-r--r-- | fs/ceph/inode.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/ceph/inode.c b/fs/ceph/inode.c index 791f84a13bb8..18500edefc56 100644 --- a/fs/ceph/inode.c +++ b/fs/ceph/inode.c | |||
@@ -736,6 +736,7 @@ static int fill_inode(struct inode *inode, struct page *locked_page, | |||
736 | int issued, new_issued, info_caps; | 736 | int issued, new_issued, info_caps; |
737 | struct timespec64 mtime, atime, ctime; | 737 | struct timespec64 mtime, atime, ctime; |
738 | struct ceph_buffer *xattr_blob = NULL; | 738 | struct ceph_buffer *xattr_blob = NULL; |
739 | struct ceph_buffer *old_blob = NULL; | ||
739 | struct ceph_string *pool_ns = NULL; | 740 | struct ceph_string *pool_ns = NULL; |
740 | struct ceph_cap *new_cap = NULL; | 741 | struct ceph_cap *new_cap = NULL; |
741 | int err = 0; | 742 | int err = 0; |
@@ -881,7 +882,7 @@ static int fill_inode(struct inode *inode, struct page *locked_page, | |||
881 | if ((ci->i_xattrs.version == 0 || !(issued & CEPH_CAP_XATTR_EXCL)) && | 882 | if ((ci->i_xattrs.version == 0 || !(issued & CEPH_CAP_XATTR_EXCL)) && |
882 | le64_to_cpu(info->xattr_version) > ci->i_xattrs.version) { | 883 | le64_to_cpu(info->xattr_version) > ci->i_xattrs.version) { |
883 | if (ci->i_xattrs.blob) | 884 | if (ci->i_xattrs.blob) |
884 | ceph_buffer_put(ci->i_xattrs.blob); | 885 | old_blob = ci->i_xattrs.blob; |
885 | ci->i_xattrs.blob = xattr_blob; | 886 | ci->i_xattrs.blob = xattr_blob; |
886 | if (xattr_blob) | 887 | if (xattr_blob) |
887 | memcpy(ci->i_xattrs.blob->vec.iov_base, | 888 | memcpy(ci->i_xattrs.blob->vec.iov_base, |
@@ -1022,8 +1023,8 @@ static int fill_inode(struct inode *inode, struct page *locked_page, | |||
1022 | out: | 1023 | out: |
1023 | if (new_cap) | 1024 | if (new_cap) |
1024 | ceph_put_cap(mdsc, new_cap); | 1025 | ceph_put_cap(mdsc, new_cap); |
1025 | if (xattr_blob) | 1026 | ceph_buffer_put(old_blob); |
1026 | ceph_buffer_put(xattr_blob); | 1027 | ceph_buffer_put(xattr_blob); |
1027 | ceph_put_string(pool_ns); | 1028 | ceph_put_string(pool_ns); |
1028 | return err; | 1029 | return err; |
1029 | } | 1030 | } |