[BUG] Possible bug of missing error return code in __ext4_journalled_writepage()

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

 



In __ext4_journalled_writepage():
    ......
    inode_bh = ext4_journalled_write_inline_data(inode, len, page);
    if (inode_bh == NULL)
        goto out;
    ......
out:
    unlock_page(page);
out_no_pagelock:
    brelse(inode_bh);
    return ret;

When inode_bh is NULL, ret is not assigned with an error code like -ENOENT.
I wonder whether this is intentional? Or ret should be assigned with -ENOENT here?


Best wishes,
Jia-Ju Bai



[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux