summaryrefslogtreecommitdiff
path: root/fs/ext4/ext4_write.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-03-31 10:04:23 -0400
committerTom Rini <trini@konsulko.com>2023-03-31 10:04:23 -0400
commitb8deed53fe6a55ef76b4f9038bb419a9c853a9fa (patch)
tree2f0cdb8f35d7c51611417bab680583a65bf21306 /fs/ext4/ext4_write.c
parentf1617e99b933d2c3ecb381954148284d37bf922e (diff)
parentf98b112f9e0516fc9333611d1228d0b634aa353e (diff)
Merge branch '2023-03-30-assorted-general-upates' into next
- RTC cleanups / improvements, run_commandf() cleanups, fs bugfixes, socrates config fix, PCI MPS support, GPIO improvements, other code cleanups
Diffstat (limited to 'fs/ext4/ext4_write.c')
-rw-r--r--fs/ext4/ext4_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/ext4_write.c b/fs/ext4/ext4_write.c
index f22af45d1b9..ea4c5d4157c 100644
--- a/fs/ext4/ext4_write.c
+++ b/fs/ext4/ext4_write.c
@@ -473,7 +473,7 @@ static int ext4fs_delete_file(int inodeno)
* special case for symlinks whose target are small enough that
*it fits in struct ext2_inode.b.symlink: no block had been allocated
*/
- if ((le16_to_cpu(inode.mode) & S_IFLNK) &&
+ if (S_ISLNK(le16_to_cpu(inode.mode)) &&
le32_to_cpu(inode.size) <= sizeof(inode.b.symlink)) {
no_blocks = 0;
}