<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/fs/adfs/dir.c, branch v6.18.22</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.18.22</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.18.22'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2020-01-21T01:12:42+00:00</updated>
<entry>
<title>fs/adfs: mostly divorse inode number from indirect disc address</title>
<updated>2020-01-21T01:12:42+00:00</updated>
<author>
<name>Russell King</name>
<email>rmk+kernel@armlinux.org.uk</email>
</author>
<published>2019-12-09T11:11:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=25e5d4df3b46a345dccc0a07f998ce443077b4ff'/>
<id>urn:sha1:25e5d4df3b46a345dccc0a07f998ce443077b4ff</id>
<content type='text'>
Avoid using the inode number as the indirect disc address, even though
these currently have the same value.

Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>fs/adfs: dir: remove debug in adfs_dir_update()</title>
<updated>2020-01-21T01:12:42+00:00</updated>
<author>
<name>Russell King</name>
<email>rmk+kernel@armlinux.org.uk</email>
</author>
<published>2019-12-09T11:11:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=ccbc80a89d1399b79e43544cfbe44df964a29810'/>
<id>urn:sha1:ccbc80a89d1399b79e43544cfbe44df964a29810</id>
<content type='text'>
Remove the noisy debug in adfs_dir_update().

Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>fs/adfs: newdir: split out directory commit from update</title>
<updated>2020-01-21T01:12:42+00:00</updated>
<author>
<name>Russell King</name>
<email>rmk+kernel@armlinux.org.uk</email>
</author>
<published>2019-12-09T11:10:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=aacc954c1be8910a994e09a8f8757a2e3e231c37'/>
<id>urn:sha1:aacc954c1be8910a994e09a8f8757a2e3e231c37</id>
<content type='text'>
After changing a directory, we need to update the sequence numbers and
calculate the new check byte before the directory is scheduled to be
written back to the media.  Since this needs to happen for any change
to the directory, move this into a separate method.

Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>fs/adfs: dir: add more efficient iterate() per-format method</title>
<updated>2020-01-21T01:12:41+00:00</updated>
<author>
<name>Russell King</name>
<email>rmk+kernel@armlinux.org.uk</email>
</author>
<published>2019-12-09T11:10:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4287e4deb1280633ffbda608f946d6d7c2d76d4a'/>
<id>urn:sha1:4287e4deb1280633ffbda608f946d6d7c2d76d4a</id>
<content type='text'>
Rather than using setpos + getnext to iterate through the directory
entries, pass iterate() down to the dir format code to populate the
dirents.

Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>fs/adfs: dir: switch to iterate_shared method</title>
<updated>2020-01-21T01:12:41+00:00</updated>
<author>
<name>Russell King</name>
<email>rmk+kernel@armlinux.org.uk</email>
</author>
<published>2019-12-09T11:10:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=cdc46e99e1c9f50802c4f543f10151887e4c4e0e'/>
<id>urn:sha1:cdc46e99e1c9f50802c4f543f10151887e4c4e0e</id>
<content type='text'>
There is nothing in our readdir (aka iterate) method that relies on
the directory inode being exclusively locked, so switch to using the
iterate_shared() hook rather than iterate().

Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>fs/adfs: dir: improve compiler coverage in adfs_dir_update</title>
<updated>2020-01-21T01:12:41+00:00</updated>
<author>
<name>Russell King</name>
<email>rmk+kernel@armlinux.org.uk</email>
</author>
<published>2019-12-09T11:10:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=4a0a88b6660b48f773b6e7631e0be57b7f5048ed'/>
<id>urn:sha1:4a0a88b6660b48f773b6e7631e0be57b7f5048ed</id>
<content type='text'>
Get rid of the ifdef, using IS_ENABLED() instead to detect whether the
code should be callable.  This allows the compiler to always parse the
following code, reducing the chances of errors being missed.

Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>fs/adfs: dir: improve update failure handling</title>
<updated>2020-01-21T01:12:41+00:00</updated>
<author>
<name>Russell King</name>
<email>rmk+kernel@armlinux.org.uk</email>
</author>
<published>2019-12-09T11:10:01+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=f6075c79074378910e131bbebc9d1dab53fd9986'/>
<id>urn:sha1:f6075c79074378910e131bbebc9d1dab53fd9986</id>
<content type='text'>
When we update a directory, a number of errors may happen. If we failed
to find the entry to update, we can just release the directory buffers
as normal.

However, if we have some other error, we may have partially updated the
buffers, resulting in an invalid directory. In this case, we need to
discard the buffers to avoid writing the contents back to the media, and
later re-read the directory from the media.

Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>fs/adfs: dir: update directory locking</title>
<updated>2020-01-21T01:12:41+00:00</updated>
<author>
<name>Russell King</name>
<email>rmk+kernel@armlinux.org.uk</email>
</author>
<published>2019-12-09T11:09:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=deed1bfd150c7c71bcdc16419c90933096c1c75e'/>
<id>urn:sha1:deed1bfd150c7c71bcdc16419c90933096c1c75e</id>
<content type='text'>
Update directory locking such that it covers the validation of the
directory, which could fail if another thread is concurrently writing
to the same directory.  Since we may sleep, we need to use a rwsem
rather than a rw spinlock.

Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>fs/adfs: dir: add helper to mark directory buffers dirty</title>
<updated>2020-01-21T01:12:41+00:00</updated>
<author>
<name>Russell King</name>
<email>rmk+kernel@armlinux.org.uk</email>
</author>
<published>2019-12-09T11:09:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c3c8149b3552b6656ded9ac86d53072f74771ba7'/>
<id>urn:sha1:c3c8149b3552b6656ded9ac86d53072f74771ba7</id>
<content type='text'>
Provide a helper for marking directory buffers dirty so they get
written back to disk.

Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
<entry>
<title>fs/adfs: dir: add helper to read directory using inode</title>
<updated>2020-01-21T01:12:41+00:00</updated>
<author>
<name>Russell King</name>
<email>rmk+kernel@armlinux.org.uk</email>
</author>
<published>2019-12-09T11:09:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=90011c7ad999c9565a5c97704cd5bda151ebe447'/>
<id>urn:sha1:90011c7ad999c9565a5c97704cd5bda151ebe447</id>
<content type='text'>
Add a helper to read a directory using the inode, which we do in two
places.

Signed-off-by: Russell King &lt;rmk+kernel@armlinux.org.uk&gt;
Signed-off-by: Al Viro &lt;viro@zeniv.linux.org.uk&gt;
</content>
</entry>
</feed>
