fuse: create helper function if DIO write needs exclusive lock
authorBernd Schubert <bschubert@ddn.com>
Tue, 22 Aug 2023 19:48:18 +0000 (21:48 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 23 Feb 2024 16:36:31 +0000 (17:36 +0100)
commit699cf8246ee4c2c524f18c2e395909d16e7fda1b
treed06f3949aecd615ee7f83a0ad18fda4db6cd1921
parent9511176bbaee0ac60ecc84e7b01cf5972a59ea17
fuse: create helper function if DIO write needs exclusive lock

This makes the code a bit easier to read and allows to more easily add more
conditions when an exclusive lock is needed.

Signed-off-by: Bernd Schubert <bschubert@ddn.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/file.c