Re: [PATCH v2 6/6] efivarfs: fix error on write to new variable leaving remnants

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jan 06, 2025 at 06:35:25PM -0800, James Bottomley wrote:

> +	inode_lock(inode);
> +	if (d_unhashed(file->f_path.dentry)) {
> +		/*
> +		 * file got removed; don't allow a set.  Caused by an
> +		 * unsuccessful create or successful delete write
> +		 * racing with us.
> +		 */
> +		bytes = -EIO;
> +		goto out;
> +	}

Wouldn't the check for zero ->i_size work here?  Would be easier to
follow...




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux