Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Martin Brandenburg and committed by
Mike Marshall
8a88bbce 3e9dfc6e

+5
+5
fs/orangefs/orangefs-utils.c
··· 431 431 copy_attributes_from_inode(inode, 432 432 &new_op->upcall.req.setattr.attributes); 433 433 orangefs_inode->attr_valid = 0; 434 + if (!new_op->upcall.req.setattr.attributes.mask) { 435 + spin_unlock(&inode->i_lock); 436 + op_release(new_op); 437 + return 0; 438 + } 434 439 spin_unlock(&inode->i_lock); 435 440 436 441 ret = service_operation(new_op, __func__,