diff options
| author | Jeff Layton <jlayton@kernel.org> | 2024-01-31 18:01:58 -0500 |
|---|---|---|
| committer | Christian Brauner <brauner@kernel.org> | 2024-02-05 13:11:38 +0100 |
| commit | a69ce85ec9af6bdc0b3511959a7dc1a324e5e16a (patch) | |
| tree | 4df18a2921afb3ad3a002210fad2f84a32fa2425 /fs/smb/client/file.c | |
| parent | filelock: drop the IS_* macros (diff) | |
| download | linux-a69ce85ec9af6bdc0b3511959a7dc1a324e5e16a.tar.gz linux-a69ce85ec9af6bdc0b3511959a7dc1a324e5e16a.zip | |
filelock: split common fields into struct file_lock_core
In a future patch, we're going to split file leases into their own
structure. Since a lot of the underlying machinery uses the same fields
move those into a new file_lock_core, and embed that inside struct
file_lock.
For now, add some macros to ensure that we can continue to build while
the conversion is in progress.
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20240131-flsplit-v3-17-c6129007ee8d@kernel.org
Reviewed-by: NeilBrown <neilb@suse.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/smb/client/file.c')
| -rw-r--r-- | fs/smb/client/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/smb/client/file.c b/fs/smb/client/file.c index c26f8ed14065..d3f5969c3a86 100644 --- a/fs/smb/client/file.c +++ b/fs/smb/client/file.c @@ -9,6 +9,7 @@ * */ #include <linux/fs.h> +#define _NEED_FILE_LOCK_FIELD_MACROS #include <linux/filelock.h> #include <linux/backing-dev.h> #include <linux/stat.h> @@ -2951,7 +2952,7 @@ skip_write: continue; } - folio_batch_release(&fbatch); + folio_batch_release(&fbatch); cond_resched(); } while (wbc->nr_to_write > 0); |
