mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-07 07:08:07 +00:00
orangefs: skip inode writeout if nothing to write
Would happen if an inode is dirty but whatever happened is not something that can be written out to OrangeFS. Signed-off-by: Martin Brandenburg <martin@omnibond.com> Signed-off-by: Mike Marshall <hubcap@omnibond.com>
This commit is contained in:
parent
3e9dfc6e1e
commit
8a88bbce6f
1 changed files with 5 additions and 0 deletions
|
@ -431,6 +431,11 @@ int orangefs_inode_setattr(struct inode *inode)
|
||||||
copy_attributes_from_inode(inode,
|
copy_attributes_from_inode(inode,
|
||||||
&new_op->upcall.req.setattr.attributes);
|
&new_op->upcall.req.setattr.attributes);
|
||||||
orangefs_inode->attr_valid = 0;
|
orangefs_inode->attr_valid = 0;
|
||||||
|
if (!new_op->upcall.req.setattr.attributes.mask) {
|
||||||
|
spin_unlock(&inode->i_lock);
|
||||||
|
op_release(new_op);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
spin_unlock(&inode->i_lock);
|
spin_unlock(&inode->i_lock);
|
||||||
|
|
||||||
ret = service_operation(new_op, __func__,
|
ret = service_operation(new_op, __func__,
|
||||||
|
|
Loading…
Add table
Reference in a new issue