summaryrefslogtreecommitdiffstats
path: root/fs/squashfs/inode.c
Commit message (Collapse)AuthorAgeFilesLines
* fs: squashfs: remove dead stores for xattr_idAhmad Fatoum2020-10-021-6/+0
| | | | | | | | | barebox doesn't do extended attributes in SquashFS. Remove the left-over xattr_id that's never read. Reported-by: clang-analyzer-10 Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: Use iget_locked() rather than squashfs specific functionSascha Hauer2020-08-201-17/+1
| | | | | | | | | | | | Use iget_locked() to let the core allocate the inode. This properly initializes all fields in the new inode, especially it adds the new inode to the list of all inodes for the filesystem. This prevents a NULL pointer derefence when iput() removes the inode from that list. This fixes squashfs support which is broken since 43902e5763 ("fs: free inodes we no longer need") Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: squashfs: Switch to dentry cache implementationSascha Hauer2018-07-131-0/+9
| | | | | | While at it implement symlink support. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: squashfs: use correct format specifierLucas Stach2016-06-071-1/+1
| | | | | | | | | Fixes: fs/squashfs/inode.c: warning: format '%d' expects argument of type 'int', but argument 3 has type 'long long int' Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
* fs: add support for SquashFS 4.0Yegor Yefremov2016-03-021-0/+402
The driver was imported from Linux 4.4. Current implementation supports only XZ decompressor. Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com> Tested-by: Antony Pavlov <antonynpavlov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>